arr = [32, 3, 37, 8, 2, 17, 1]
sums = [i for i in range(1, 101)]

count = 1
sum = 0
def recurs(depth, start):
    global count, sum, sums
    for i in range(start, len(arr)):
        sum+=arr[i]
        if sum in sums:
            sums.remove(sum)
        if count != depth:
            count += 1
            recurs(depth, i+1)
        sum -= arr[i]
    count-=1

recurs(len(arr), 0)
print(sums)
